-- GENERATED SPELL FOR [Foreman Grills] --


function spell0_5835(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5835', 10278, 1)
end

function Sorts_5835(pUnit, Event)
local choix_sorts_5835 = math.random(0, 0)
if choix_sorts_5835 == 0 then
pUnit:RegisterEvent('spell0_5835', 1, 1)
end
end

function mob5835_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5835', math.random(1500, 3000), 1)
end

function mob5835_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5835_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5835_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5835, 1, 'mob5835_Action')
RegisterUnitEvent(5835, 2, 'mob5835_Leave')
RegisterUnitEvent(5835, 3, 'mob5835_Kill')
RegisterUnitEvent(5835, 4, 'mob5835_Die')
